package com.wangzh.service.impl;

import com.wangzh.service.IMessageServcie;
import com.wangzh.service.IOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class OrderServiceImpl implements IOrderService {

    @Autowired
    private IMessageServcie messageServcie;

    @Override
    public void order(String id) {
        //
        log.info("订单处理开始");
        //短信消息处理
        messageServcie.sendMessage(id);


        log.info("订单处理结束");
    }
}
